<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ page import="com.cg.slms.domain.*,java.util.*"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
<head>
<base href="<%=basePath%>" />
<title>商品档案</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">

<script language="javascript" src="script/main.js"></script>
<script language="javascript" src="script/calendar5.js"></script>
<script type="text/javascript">
    var c = new Calendar("c");                     
    document.write(c);
</script>  
</head>
<body>

	<p><font style="font-size:20px;position:relative;left:450px;top:50px">商品管理→商品档案→修改</font></p>
<form:form action="updateMerchandiseAction" method="post" modelAttribute="merchandise">
	<table border="0" cellpadding="1" cellspacing="1" width="95%">
		<tr>
			<td align="right" width="10%" nowrap="nowrap" style="position:relative;top:65px">商品编号</td>
			<td width="20%">
				<form:hidden path="id" />
				<form:input path="code" class="form-control" style="position:relative;top:85px"/><br></br>
				<form:errors path="code" ></form:errors>
			</td>
			<td align="right" width="10%" nowrap="nowrap" style="position:relative;top:65px">商品名称</td>
			<td width="20%">
				<form:input path="name" class="form-control" style="position:relative;top:85px"/>
				<br></br><form:errors path="name" ></form:errors>
			</td>
			<td align="right" width="10%" style="position:relative;top:65px">商品价格</td>
			<td width="20%">
				<form:input path="price" class="form-control"  style="position:relative;top:85px"/>
				<br></br><form:errors path="price" ></form:errors>
			</td>
			<td width="10%">&nbsp;</td>
		</tr>
		
	</table>

	<p></p>
	<div style="margin-left: 30px; margin-right: 0px">
	<table border="0" cellpadding="0" cellspacing="0" width="95%" style="position:relative;top:80px;left:450px">
		<tr>
			<td width="10%"><input type="submit" value="保存" class="btn btn-info"/></td>
			<td width="10%"><input type="button" class="btn btn-info" value="返回" onclick="history.go(-1);"/></td>
			<td width="80%">&nbsp;</td>
		</tr>
	</table>
	</div>
</form:form>
</body>
</html>